package chuichui.Utils
{
	import flash.utils.Dictionary;

	/**
	 * 全局变量
	 * @author hyy
	 *
	 */
	public class Val
	{
		/**
		 * 无操作
		 */
		public static const UNKEY : int = 0;

		/**
		 * 人物状态
		 */
		public static const WALK_STATE : int = 0;
		public static const STAND_STATE : int = 1;
		public static const DEAD_STATE : int = 2;
		public static const DROP_STATE : int = 3;
		public static const ATTACK_STATE : int = 4;
		public static const JUMP_STATE : int = 5;
		/**
		 * 人物状态avatarId
		 */
		public static const WALK_AVATAR : int = 0;
		public static const STAND_AVATAR : int = 1;
		public static const KNOCKDOWN_AVATAR : int = 2;
		public static const KNOCKUP_AVATAR : int = 3;
		public static const KNOCKNORMAL_AVATAR : int = 4;
		public static const DEAD_AVATAR : int = 5;
		public static const DROP_AVATAR : int = 6;
		public static const CLIMB_AVATAR : int = 7;
		public static const STOPAIR_AVATAR : int = 9;
		/**
		 * 特效
		 */
		public static const EFFECT_KNOCKDOWN : int = 1;
		public static const EFFECT_KNOCKUP : int = 2;
		public static const EFFECT_KNOCKNORMAL : int = 3;
		public static const EFFECT_DEAD : int = 4;
		public static const EFFECT_DROP : int = 5;
		public static const EFFECT_BIRTH : int = 6;

		/**
		 * 怪物的状态
		 * 0出生
		 * 1缩进
		 * 2待机
		 * 3愤怒攻击
		 * 4死亡
		 * 5受击
		 */
		public static const MONSTER_STATE_COMEOUT : int = 0;
		public static const MONSTER_STATE_COMEIN : int = 1;
		public static const MONSTER_STATE_STAND : int = 2;
		public static const MONSTER_STATE_ATTACK : int = 3;
		public static const MONSTER_STATE_DEAD : int = 4;
		public static const MONSTER_STATE_UNATTACK : int = 5;
		public static const MONSTER_STATE_CHANGE : int = 6;
		/**
		 * 怪物avatar的ID
		 * 0出生
		 * 1未受伤待机
		 * 2转换攻击状态
		 * 4死亡
		 * 5缩进
		 * 6愤怒攻击
		 * 7受击
		 */
		public static const MONSTER_AVATAR_COMEOUT : int = 0;
		public static const MONSTER_AVATAR_STAND_NORMAL : int = 1;
		public static const MONSTER_AVATAR_CHANGE : int = 2;
		public static const MONSTER_AVATAR_DEAD : int = 4;
		public static const MONSTER_AVATAR_GOIN : int = 5;
		public static const MONSTER_AVATAR_ATTACK : int = 6;
		public static const MONSTER_AVATAR_UNATTACK : int = 7;
		/**
		 * 泥土
		 */
		public static const CLAY_STAMD : int = 0;
		public static const CLAY_COMEOUT : int = 1;
		public static const CLAY_BREAK : int = 2;

		/**
		 * 移动类型
		 * 1发送点对点位置
		 * 2停止移动
		 * 3朝当前方向移动
		 * 98每个格子发送一次更新位置坐标
		 * 99直接飞到当前坐标
		 */
		public static const P2P_DIR : int = 1;
		public static const STOPMOVE : int = 2;
		public static const DIRECT_DIR : int = 3;
		public static const GRID_UPDATE_POS : int = 98;
		public static const GOTOPOSITION : int = 99;

		/**
		 * 容器渲染层次
		 * 1底层
		 * 2怪物层
		 * 3人物层
		 * 4玩家自己一层
		 * 5顶层
		 * 用于操作容器的层级关系
		 */
		public static const LAYER_BOTTOM : int = 1;
		public static const LAYER_MONSTER : int = 2;
		public static const LAYER_ROLE : int = 3;
		public static const LAYER_SELFROLE : int = 4;
		public static const LAYER_TOP : int = 5;

		/**
		 * 组件渲染层次
		 * 1底层
		 * 2中层
		 * 3顶层
		 * 用于操作容器里面的组件层级关系
		 */
//		public static const BOTTOM : int = 1;
//		public static const MIDDEN : int = 2;
//		public static const TOP : int = 3;


		public static const PRIORITY_LOW : int = 0;
		public static const PRIORITY_MIDDEN : int = 1;
		public static const PRIORITY_HIGH : int = 2;

		public static const LOAD_LVEVEL_ROLE : int = 1000;
		public static const LOAD_LVEVEL_MAP : int = 1100;
		public static const LOAD_LVEVEL_ICO : int = 0;

		/**
		 * 地图数据
		 * 0空气
		 * 1地板
		 * 2梯子上端
		 * 3梯子下端
		 * 4梯子中间
		 */
		public static const AIR : int = 0;
		public static const GROUND : int = 1;
		public static const LADDER_UP : int = 2;
		public static const LADDER_DOWN : int = 3;
		public static const LADDER : int = 4;

		/**
		 * BUFF状态
		 * 1分数翻倍
		 * 2隐身
		 * 3力量拳套
		 * 4恶魔
		 * 5无敌
		 * 6蜘蛛网
		 * 7雷神之力
		 */
		public static const BUFF_DOUBLE_SCORE : int = 1;
		public static const BUFF_VISIBLE : int = 2;
		public static const BUFF_DOUBLE_POWER : int = 3;
		public static const BUFF_EMO : int = 4;
		public static const BUFF_INVICIBLE : int = 5;
		public static const BUFF_SLOWLY : int = 6;
		public static const BUFF_LEISHEN : int = 7;
		/**
		 * 朝一个方向一直行走
		 * 一般用来给mapX,mapY赋值
		 */
		public static const DIRECTMOVE : int = 9999;

		/**
		 * 砖块破碎的程度，数值越大，破坏越严重
		 */
		public static const TILE_LEVEL0 : int = 0;
		public static const TILE_LEVEL1 : int = 1;
		public static const TILE_LEVEL2 : int = 2;
		public static const TILE_LEVEL3 : int = 3;

		/**
		 * 队伍信息
		 */
		public static const TEAM_RED : int = 1;
		public static const TEAM_BLUE : int = 2;

		/**
		 * 男女
		 */
		public static const BOY : int = 1;
		public static const GIRL : int = 2;

		/**
		 * 商城物品类型
		 * 1 武器
		 * 2 戒指
		 * 3 手镯
		 * 4 饰品
		 * 5 功能道具
		 * 6 特殊道具
		 * 7 新品
		 * 8 热卖
		 *
		 */
		public static const SHOP_WEAPON : int = 1;
		public static const SHOP_RING : int = 2;
		public static const SHOP_BRACELET : int = 3;
		public static const SHOP_DECORATIONS : int = 4;
		public static const SHOP_PROP1 : int = 5;
		public static const SHOP_PROP2 : int = 6;
		public static const SHOP_NEW : int = 7;
		public static const SHOP_HOT : int = 8;

		/**
		 *战斗内物品 
		 */		
		public static const TAB_0:int = 0;
		/**
		 * 装备栏物品 
		 */		
		public static const TAB_1:int = 1;
		/**
		 *道具栏物品 
		 */		
		public static const TAB_2:int = 2;
		/**
		 * 装备分类
		 * 1武器
		   2道具
		   3金币
		   4戒指
		   5手镯
		   6饰品
		   7宝石
		   8其他(如消息喇叭)
		   9卷轴
		 */
		public static const GAME_GOODS : int = 0;
		public static const WEAPON : int = 1;
		public static const PROP : int = 2;
		public static const GOLD : int = 3;
		public static const RING : int = 4;
		public static const BRACELET : int = 5;
		public static const DECORATIONS : int = 6;
		public static const STONE : int = 7;
		public static const OTHER : int = 8;
		public static const SCROLL:int = 9;

		/**
		 * 背包格子数量
		 */
		public static const GRID_NUMBER : int = 48;
		/**
		 * 聊天类型
		 * 0 当前
		 * 1 公会
		 * 2 组队
		 * 3 喇叭
		 * 4 私聊
		 * 5 系统
		 */
		public static const CHAT_CURRENT : int = 0;
		public static const CHAT_GUILD : int = 1;
		public static const CHAT_TEAM : int = 2;
		public static const CHAT_TRUMPT : int = 3;
		public static const CHAT_PRIVATE : int = 4;
		public static const CHAT_SYSTEM : int = 5;
		/**
		 *  系统聊天ID
		 */
		public static const SYSTEM_MSG : int = 0;

		/**
		 * 聊天频道
		 * 0 当前
		 * 1 公会
		 * 2 私聊
		 */
		public static const CHAT_CHANNEL_CURR : int = 0;
		public static const CHAT_CHANNEL_GUILD : int = 1;
		public static const CHAT_CHANNEL_PRIVATE : int = 2;

		/**
		 * 添加好友后返回类型
		 * 0 成功
		 * 1 角色不存
		 * 2 已经是好友
		 * 3 不能添加自己
		 */
		public static const FRIEND_SUCCESS : int = 0;
		public static const FRIEND_NEGATION : int = 1;
		public static const FRIEND_EXIST : int = 2;
		public static const FRIEND_NOTME : int = 3;


		/**
		 * 物品归属
		 */
		/*public static const BELONG_WIDGET_BOX : int = 1;
		public static const BELONG_FORGE_BOX : int = 2;
		public static const BELONG_STRENGTHEN_BOX : int = 3;
		public static const BELONG_EQUIP_BOX : int = 4;*/

		/**
		 * 玩家成家经历
		 * 0需要创建角色
		 * 1需要过新手引导
		 * 2结束，正常登陆
		 */
		public static const STEP_CREATE : int = 0;
		public static const STEP_GUIDE : int = 1;
		public static const STEP_END : int = 2;

		public static const LOCAL_MUSIC : String = "music";
		public static const LOCAL_EFFECT : String = "effect";


		/**
		 * 复活特效
		 */
		public static const EFFECT_RESURRECTION : String = "effect.1006.2";
		/**
		 * 玩家自己的一个标识
		 */
		public static const EFFECT_ROLE_TAG : String = "effect.tag";
		/**
		 * 获得金币特效
		 */
		public static const EFFECT_ROLE_GOLD : String = "effect.gold";
		/**
		 * 游戏开始
		 */
		public static const EFFECT_GAME_START : String = "effect.start";
		/**
		 * 开始标志
		 */
		public static const EFFECT_START_TAG : String = "effect.start.tag";
		/**
		 * 复活动画
		 */
		public static const EFFECT_REVIVAL_ANIMATION : String = "effect.revival.animation";
		/**
		 * 会心一击
		 */
		public static const EFFECT_HUIXIN : String = "effect.huixin1";
		/**
		 * 大力丸敲击特效
		 */
		public static const EFFECT_KNOCK_DALIWAN : String = "effect.1009.1";
		/**
		 * 雷神普通效果
		 */
		public static const EFFECT_NORMAL_LEISHEN : String = "effect.1010.2";
		/**
		 * 雷神敲击效果
		 */
		public static const EFFECT_KNOCK_LEISHEN : String = "effect.1010.1";

	}
}